package com.chen.blue.constant;

/**
 * Created By CLT On 2023/10/25.
 */
@SuppressWarnings("all")
public enum HttpStatus {

    SUCCESS(200, "操作成功"),
    FAILD(200, "操作失败"),
    LOGOUT(200, "注销成功"),
    C400(400, "参数类型错误"),
    C404(404, "资源不存在"),
    C401(401, "认证失败"),
    C405(405, "请求方法错误"),
    C403(403, "权限不足"),
    C415(415, "类型不支持"),
    C429(429, "请勿重复提交"),
    SYS_ERROR(500, "系统异常，请联系管理员");


    private final Integer code;
    private final String desc;

    HttpStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
